package user;

import book.BookList;
import operation.Operation;

public abstract class User {
    protected String name;
    protected Operation[] operations;//存放操作
    public User(String name) {
        this.name = name;
    }

    public abstract int menu ();

    public void doOperation(int choice, BookList booklist) {
        operations[choice].work(booklist);
    }
}
